home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / text / hyper / ADtoHT2_1.lha / Source.lha / MyLib.lha / stdio / puts.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-09  |  290 b   |  18 lines

  1. #include <stdio.h>
  2. #include <errno.h>
  3.  
  4. #include <proto/dos.h>
  5.  
  6. /************************************************************************/
  7.  
  8. int puts(const char *String)
  9.  
  10. {
  11.   if (PutStr((char *)String) || PutStr((char *)"\n"))
  12.     {
  13.       errno=IoErr();
  14.       return EOF;
  15.     }
  16.   return 1;
  17. }
  18.